package com.sun.talk.enums

enum class SearchFriendsStatusEnum(val status:Int, val msg :String) {
    SUCCESS(0,"成功"),
    USER_NOT_EXIST(1,"无此用户"),
    NOT_YOURSELF(2,"不能添加你自己"),
    ALREADY_FRIENDS(3,"该用户已经是你的好友");

    companion object{
        fun getMsgByKey(status: Int): String {
            return values().firstOrNull { it.status == status }?.msg?:""
        }
    }
}